home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 2002 May
/
SGI IRIX 6.5 Applications 2002 May.iso
/
dist
/
impr_scan.idb
/
usr
/
share
/
catman
/
p_man
/
cat3
/
SCGetUserInfo.z
/
SCGetUserInfo
Wrap
Text File
|
1998-05-04
|
3KB
|
67 lines
SSSSCCCCGGGGeeeettttUUUUsssseeeerrrrIIIInnnnffffoooo((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttUUUUsssseeeerrrrIIIInnnnffffoooo((((3333))))
NNNNAAAAMMMMEEEE
SCGetUserInfo - Get information about who is using a scanner
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
iiiinnnntttt SSSSCCCCGGGGeeeettttUUUUsssseeeerrrrIIIInnnnffffoooo((((cccchhhhaaaarrrr ****ssssccccaaaannnnnnnneeeerrrr,,,, cccchhhhaaaarrrr ********llllooooggggiiiinnnn,,,, cccchhhhaaaarrrr ********nnnnaaaammmmeeee,,,,
cccchhhhaaaarrrr ********hhhhoooossssttttNNNNaaaammmmeeee))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_S_C_G_e_t_U_s_e_r_I_n_f_o can be used after a call to _S_C_O_p_e_n(3) has failed with
_S_C_e_r_r_n_o set to EEEEBBBBUUUUSSSSYYYY. _S_C_G_e_t_U_s_e_r_I_n_f_o returns the login name and the real
name of the user who has the scanner open, and the host name of machine
on which the scanner is open.
if _S_C_G_e_t_U_s_e_r_I_n_f_o is called at any time other than right after SSSSCCCCOOOOppppeeeennnn has
failed with _S_C_e_r_r_n_o set to EEEEBBBBUUUUSSSSYYYY, information about the last person to
have used the scanner is returned.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
_S_C_G_e_t_U_s_e_r_I_n_f_o returns 0 if it is successful, or -1 if there is an error.
In the event of an error, _S_C_G_e_t_U_s_e_r_I_n_f_o sets _S_C_e_r_r_n_o to indicate the
reason.
EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
_S_C_G_e_t_U_s_e_r_I_n_f_o will fail under the following circumstances.
SCENOSCANNER No such scanner
SCENOSCANNERS No scanners are installed
SCENOMEM Out of memory
SCEDRVMSG Driver specific error. _S_C_E_r_r_o_r_S_t_r_i_n_g(3) will
return a custom message supplied by the scanner
driver
In addition, _S_C_G_e_t_U_s_e_r_I_n_f_o may fail as the result of a failed system
call, in which case _S_C_e_r_r_n_o will be set to a value from <_s_y_s/_e_r_r_n_o._h>.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_s_c_a_n_n_e_r_s(1M), _l_i_b_s_c_a_n(3), _S_C_C_l_o_s_e(3), _S_C_G_e_t_S_c_a_n_E_n_t(3).
PPPPaaaaggggeeee 1111